

function main( json, ui, hh ) {
	
	if( null == json ) throw new Exception("param json is null!");
	
	return createUser( json );
	
}

function createUser( p ) {
	
	 var a = new UserEntity();
	 
     p.copyTo( a );
     	  
	 EntityManager.createUser( a );
	 
	 return a; 
}

